﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>教练详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <link href="https://cdn.bootcss.com/amazeui/2.7.2/css/amazeui.css" rel="stylesheet">
    <link href="css/common.css" rel="stylesheet" />
    <style>
        .main{
            width: 100%;
        }
        body{
            background: #f6f6f6;
        }
        .am-tabs{
            background: #fff;
        }
        .am-nav-tabs{
            border:1px solid #efefef;
            background: #fff;
        }
        .am-nav-tabs > li.am-active > a, .am-nav-tabs > li.am-active > a:hover, .am-nav-tabs > li.am-active > a:focus{
            border:none;
            border-bottom:1px solid #6fddb1;
        }
        .am-nav-tabs > li > a{
            padding: 10% 0;
        }
        .am-tabs-bd{
            border:none;
        }
    </style>
</head>
<body>
    <div class="page" id="page" v-cloak>
        <header data-am-widget="header" class="am-header am-header-default" style="background-color: #FFFFFF; border-bottom: 1px solid rgb(211, 211, 211);">
            <div class="am-header-left am-header-nav" onclick="goBack()">
                <a href="javascript:" class="">
                    <img class="am-header-icon-custom" src="images/veas07.png" alt="" />
                </a>
            </div>
            <h4 class="am-header-title" style=" color: black;">教练详情</h4>
            <div class="am-header-right am-header-nav"><a href="/Wap/Index.html" class="am-header-icon am-icon-home" style="color: #A9A9A9; "></a></div>
        </header>
        <div class="main">
            <div style="margin-bottom: 3%" class="am-list-news-bd">
                <ul class="am-list" style="margin-bottom: 0">
                    <li style="border-top:none;overflow: hidden;margin-bottom: 0" class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">
                        <div style="padding-right: 0" class="am-u-sm-3 am-list-thumb">
                            <a href="">
                                <img v-bind:src="actinfo.faceImg" style="width: 100%;border-radius: 5px">
                            </a>
                        </div>
                        <div class=" am-u-sm-9 am-list-main">
                            <div class="am-list-item-hd am-g" style=" font-size: 1.7rem;margin: 1% 0;overflow: hidden">
                                <span class="" style="display: block;font-size: 1.8rem;padding: 0">{{actinfo.Name}}</span>
                                <div style="overflow: hidden;margin-top: 2%;">
                                    <img src="images/coach03.png" alt="" style="width: 30%;display: block;float:left;padding: 0;margin-top: 1%">
                                    <span style="color: #a7a7a7;display: block;float:left;margin-top: -1.5%;margin-left: 4%;font-size: 1.5rem">420课时</span>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
            <div style="width: 100%;padding: 3% 2%;background: #fff;border-bottom: 1px solid #dedede;">
                <span>{{actinfo.venue!=null?actinfo.venue.Name:"平台教练"}}</span>
                <div style="float:right;">
                    <img src="images/coach01.png" alt="" style="width:20%">
                    <span style="color: #a7a7a7;font-size: 1.6rem">金牌教练</span>
                </div>
            </div>
            <div style="width: 100%;padding: 3% 2%;background: #fff;border-bottom: 1px solid #dedede;font-size: 1.4rem;font-weight: 600">
                教练简介
            </div>
            <div style="width: 100%;padding: 3% 2%;background: #fff;border-bottom: 1px solid #dedede;font-size: 1.4rem">
                {{actinfo.profile}}
            </div>
            <div style="width: 100%;padding: 2% 2%;background: #fff;border-bottom: 1px solid #dedede;font-size: 1.4rem;text-align: center;margin-bottom: 3%">
                <!--<span style="color: #9a9a9a;">查看详情</span><span class="am-icon am-icon-angle-down" style="font-size: 1.8rem;margin-left: 2%"></span>-->
            </div>
            <div class="am-tabs" data-am-tabs="{noSwipe: 1}" id="doc-tab-demo-1">
                <ul class="am-tabs-nav am-nav am-nav-tabs" style="background: #fff">
                    <li class="am-active am-u-sm-12"><a href="" style="color: #8f8f8f;text-align: center;">评价</a></li>
                    <!--<li class=" am-u-sm-6"><a href="" style="color: #8f8f8f;text-align: center;">报名</a></li>-->
                </ul>

                <div class="am-tabs-bd" style="background: #fff">
                    <div style="padding:12% 0;width: 100%;" class="am-tab-panel am-active">
                        <img src="images/coach06.png" alt="" style="width: 20%;display: block;margin: 0 auto;">
                    </div>
                    <div class="am-tab-panel">

                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script src="https://use.fontawesome.com/ca6b609d64.js"></script>
<script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.js"></script>
<script src="js/common.js"></script>
<script src="https://cdn.bootcss.com/vue/2.5.9/vue.js"></script>
<script src="https://cdn.bootcss.com/amazeui/2.7.2/js/amazeui.js"></script>
</html>

<script>

    var page = new Vue({
        el: '#page',
        data: {
            gid: 0,
            actinfo: { Act: {} },
            item: [],
        },
        methods: {
            getInfo: function () {
                var that = this;
                $.ajax({
                    type: 'GET',
                    url: apiUrl + '/Api/Data/CoachInfo',
                    data: { "gId": that.gid },
                    success: function (data) {
                        console.log(data);
                        if (data.errcode == 0) {
                            that.actinfo = data.data.CoachInfo;
                        } else {
                            alert(data.errmsg);
                        }
                    },
                    //error: function () {
                    //    alert("服务器加载异常");
                    //}
                })
            }
        }
    });

    $(function () {
        var gid = $.getParam("gId");
        page.gid = gid;
        page.getInfo();
    })
</script>
